package cn.belong.jk.entity;

import java.io.Serializable;

public class ContractProduct implements Serializable {

    private String id;  
    
    //private Contract contract;//将复杂的关联变成单表操作  
    private String contractId;//关联关系的表，都成为普通字段  
    private String factoryId;  
      
    private String factoryName;  
    private String productNo;  
    private String productImage;  
    private String productDesc;//货物描述  
    private Integer cnumber;//数量  
    private Integer outNumber;//出货数量  
    private String loadingRate;//装率  
    private String boxNum;//箱数  
    private String packingUnit;//包装单位  
    private Double price;//单价  
    private Double amount;//总价  
    private Integer finished;//是否出货完毕  
    private String exts;//附件  
    private Integer orderNo;//排序号  
    
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getContractId() {
		return contractId;
	}
	public void setContractId(String contractId) {
		this.contractId = contractId;
	}
	public String getFactoryId() {
		return factoryId;
	}
	public void setFactoryId(String factoryId) {
		this.factoryId = factoryId;
	}
	public String getFactoryName() {
		return factoryName;
	}
	public void setFactoryName(String factoryName) {
		this.factoryName = factoryName;
	}
	public String getProductNo() {
		return productNo;
	}
	public void setProductNo(String productNo) {
		this.productNo = productNo;
	}
	public String getProductImage() {
		return productImage;
	}
	public void setProductImage(String productImage) {
		this.productImage = productImage;
	}
	public String getProductDesc() {
		return productDesc;
	}
	public void setProductDesc(String productDesc) {
		this.productDesc = productDesc;
	}
	public Integer getCnumber() {
		return cnumber;
	}
	public void setCnumber(Integer cnumber) {
		this.cnumber = cnumber;
	}
	public Integer getOutNumber() {
		return outNumber;
	}
	public void setOutNumber(Integer outNumber) {
		this.outNumber = outNumber;
	}
	public String getLoadingRate() {
		return loadingRate;
	}
	public void setLoadingRate(String loadingRate) {
		this.loadingRate = loadingRate;
	}
	public String getBoxNum() {
		return boxNum;
	}
	public void setBoxNum(String boxNum) {
		this.boxNum = boxNum;
	}
	public String getPackingUnit() {
		return packingUnit;
	}
	public void setPackingUnit(String packingUnit) {
		this.packingUnit = packingUnit;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public Double getAmount() {
		return amount;
	}
	public void setAmount(Double amount) {
		this.amount = amount;
	}
	public Integer getFinished() {
		return finished;
	}
	public void setFinished(Integer finished) {
		this.finished = finished;
	}
	public String getExts() {
		return exts;
	}
	public void setExts(String exts) {
		this.exts = exts;
	}
	public Integer getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(Integer orderNo) {
		this.orderNo = orderNo;
	}
	@Override
	public String toString() {
		return "ContractProduct [id=" + id + ", contractId=" + contractId + ", factoryId=" + factoryId
				+ ", factoryName=" + factoryName + ", productNo=" + productNo + ", productImage=" + productImage
				+ ", productDesc=" + productDesc + ", cnumber=" + cnumber + ", outNumber=" + outNumber
				+ ", loadingRate=" + loadingRate + ", boxNum=" + boxNum + ", packingUnit=" + packingUnit + ", price="
				+ price + ", amount=" + amount + ", finished=" + finished + ", exts=" + exts + ", orderNo=" + orderNo
				+ "]";
	}
	public ContractProduct() {
		super();
	}
	public ContractProduct(String id, String contractId, String factoryId, String factoryName, String productNo,
			String productImage, String productDesc, Integer cnumber, Integer outNumber, String loadingRate,
			String boxNum, String packingUnit, Double price, Double amount, Integer finished, String exts,
			Integer orderNo) {
		super();
		this.id = id;
		this.contractId = contractId;
		this.factoryId = factoryId;
		this.factoryName = factoryName;
		this.productNo = productNo;
		this.productImage = productImage;
		this.productDesc = productDesc;
		this.cnumber = cnumber;
		this.outNumber = outNumber;
		this.loadingRate = loadingRate;
		this.boxNum = boxNum;
		this.packingUnit = packingUnit;
		this.price = price;
		this.amount = amount;
		this.finished = finished;
		this.exts = exts;
		this.orderNo = orderNo;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ContractProduct other = (ContractProduct) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
    
    
}
